package org.jeecg.modules.product.risk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.product.risk.entity.TbBaseCheckPlan;
import org.jeecg.modules.product.risk.entity.TbBaseCheckPlanApprovalRecord;
import org.jeecg.modules.product.risk.entity.TbBaseCheckRecord;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 检查计划
 * @Author: jeecg-boot
 * @Date:   2024-05-17
 * @Version: V1.0
 */
public interface ITbBaseCheckPlanService extends IService<TbBaseCheckPlan> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(TbBaseCheckPlan tbBaseCheckPlan, List<TbBaseCheckRecord> tbBaseCheckRecordList, List<TbBaseCheckPlanApprovalRecord> tbBaseCheckPlanApprovalRecordList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(TbBaseCheckPlan tbBaseCheckPlan,List<TbBaseCheckRecord> tbBaseCheckRecordList,List<TbBaseCheckPlanApprovalRecord> tbBaseCheckPlanApprovalRecordList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
